import request from '@/utils/request'

export function uploadResource(data) {
  return request({
    url: '/resource/uploadResource',
    method: 'post',
    data
  })
}

export function getResourcesList(data) {
  return request({
    url: '/resource',
    method: 'post',
    data
  })
}

export function deleteResource(id) {
  return request({
    url: '/resource/delete',
    method: 'delete',
    params: { id }
  })
}
